#!/bin/bash
# 删除7天前的文件
find /home/wj/Downloads -type f -mtime +7 -exec rm {} \;
find /home/wj/Downloads -type d -mtime +7 -exec rm -rf {} \;

# 备份配置文件
rsync -avz /home/wj/.config/clash/profiles/* /home/wj/nfs/config/profiles/
rsync -avz /home/wj/.local/share/fcitx5/pinyin/user* /home/wj/nfs/config/pinyin
rsync -avz /home/wj/nutstore/doc    /backup/doc

# 删除配置文件
rm /home/wj/.config/bcompare/*.xml*
